package org.tc.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import org.tc.platform.entity.Managers;
import org.tc.platform.mapper.ManagersMapper;
import org.tc.platform.service.ManagersService;

import java.util.List;

@Service
@RestController
public class ManagersServiceImpl implements ManagersService {

    @Autowired
    private ManagersMapper managersMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return managersMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Managers record) {
        return managersMapper.insert(record);
    }

    @Override
    public Managers selectByPrimaryKey(Integer id) {
        return managersMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Managers> selectAll() {
        return managersMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(Managers record) {
        return managersMapper.updateByPrimaryKey(record);
    }

    @Override
    public Managers Login(@RequestBody Managers managers) {
        return managersMapper.Login(managers);
    }

    @Override
    public List<Managers> QueryAllManagers() {
        return managersMapper.QueryAllManagers();
    }

}
